package com.bw.base.net

import com.bw.base.entity.LoginEntity
import com.bw.base.entity.SendCodeEntity
import com.bw.base.entity.Res
import okhttp3.RequestBody
import retrofit2.http.Body
import retrofit2.http.POST
import retrofit2.http.Query

interface Apiservice {
    @POST(Cons.SEND_LOGINCODE_URL)
    suspend fun sendCode(@Query ("phone")phone:String):Res<SendCodeEntity>
    @POST(Cons.LOGIN_URL)
    suspend fun login(@Body requestBody: RequestBody):Res<LoginEntity>
}